document.addEventListener('DOMContentLoaded', () => {
	

	// 加载所有模块
	const modules = [{
			id: 'header',
			file: '/components/header.html'
		},
		{
			id: 'footer',
			file: '/components/footer.html'
		}
	];

	modules.forEach(module => {
		fetch(module.file)
			.then(r => r.text())
			.then(html => {
				const container = document.getElementById(module.id);
				if (container) container.innerHTML = html;
			});
	});
});


